<div class="login">
  <form class="form-horizontal" [formGroup]='loginForm'>
    <div class="form-group">
      <div class="col-sm-3">
        <input type="text" class="form-control" formControlName="account" id="inputEmail3" placeholder="账号">
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-3">
        <input type="password" class="form-control" formControlName="pwd" id="inputPassword3" placeholder="密码">
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-3" style="display: flex">
        <input style="float: left" type="text"  class="form-control col-sm-8" formControlName="code"  placeholder="验证码">
        <img (click)="changeCode()" style="float: left" src="{{imgSrc}}" class="form-control col-sm-4">
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-3">
        <button type="submit" class="btn btn-outline-info ml-100" (click)="login($event,loginForm.value)" [disabled]="!loginForm.valid">Sign in</button>
      </div>
    </div>
  </form>
</div>

